package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceClockinMapper;
import com.ruoyi.service.domain.ServiceClockin;
import com.ruoyi.service.service.IServiceClockinService;

/**
 * 定位打卡拍照表Service业务层处理
 * 
 * @author ZDL
 * @date 2025-03-11
 */
@Service
public class ServiceClockinServiceImpl implements IServiceClockinService 
{
    @Autowired
    private ServiceClockinMapper serviceClockinMapper;

    /**
     * 查询定位打卡拍照表
     * 
     * @param clockinId 定位打卡拍照表主键
     * @return 定位打卡拍照表
     */
    @Override
    public ServiceClockin selectServiceClockinByClockinId(Long clockinId)
    {
        return serviceClockinMapper.selectServiceClockinByClockinId(clockinId);
    }

    /**
     * 查询定位打卡拍照表列表
     * 
     * @param serviceClockin 定位打卡拍照表
     * @return 定位打卡拍照表
     */
    @Override
    public List<ServiceClockin> selectServiceClockinList(ServiceClockin serviceClockin)
    {
        return serviceClockinMapper.selectServiceClockinList(serviceClockin);
    }

    /**
     * 新增定位打卡拍照表
     * 
     * @param serviceClockin 定位打卡拍照表
     * @return 结果
     */
    @Override
    public int insertServiceClockin(ServiceClockin serviceClockin)
    {
        return serviceClockinMapper.insertServiceClockin(serviceClockin);
    }

    /**
     * 修改定位打卡拍照表
     * 
     * @param serviceClockin 定位打卡拍照表
     * @return 结果
     */
    @Override
    public int updateServiceClockin(ServiceClockin serviceClockin)
    {
        return serviceClockinMapper.updateServiceClockin(serviceClockin);
    }

    /**
     * 批量删除定位打卡拍照表
     * 
     * @param clockinIds 需要删除的定位打卡拍照表主键
     * @return 结果
     */
    @Override
    public int deleteServiceClockinByClockinIds(Long[] clockinIds)
    {
        return serviceClockinMapper.deleteServiceClockinByClockinIds(clockinIds);
    }

    /**
     * 删除定位打卡拍照表信息
     * 
     * @param clockinId 定位打卡拍照表主键
     * @return 结果
     */
    @Override
    public int deleteServiceClockinByClockinId(Long clockinId)
    {
        return serviceClockinMapper.deleteServiceClockinByClockinId(clockinId);
    }
}
